package cn.lucky.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lingpeng.jiang
 * @create 2021-01-27-22:38
 */
@RestController
@RefreshScope
public class NacosConfigController {


    @Value("${config.info}")
    private String configInfo;

    @RequestMapping("/config/get")
    public String get() {
        return configInfo;
    }


}
